package org.kits.activiti6.config;

import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.activiti.engine.impl.db.DbSchemaCreate;

/**
 * @author SKyOne
 * @create 2020-06-15 15:38
 */
public class DBCreate {

    static void create_db(){
        ProcessEngineConfiguration
                .createProcessEngineConfigurationFromResourceDefault()
                .setDatabaseSchemaUpdate(ProcessEngineConfigurationImpl.DB_SCHEMA_UPDATE_CREATE)
                .buildProcessEngine();
    }

    static void create_db_by_simple(){
        DbSchemaCreate.main(new String[]{});
    }


    public static void main(String[] args) {
        create_db();
    }
}
